Execute the test case
Select Execution|Execution Configuration in the menu bar of the TPT main window to open the Execution Configuration dialog.
In this dialog, you can specify where the test execution data will be gathered. You can select the format of the report or you can enter the path to the report directory. Additionally, the platform configuration can be specified, see Figure "Settings of the 'Execution Configuration dialog'".
Click Run in the Execution Configuration dialog to start the test execution.
The test case fails because the comparison of your expected behavior of headlight
is never met. The headlight
value remains zero, which is the default value since there is no system under test that could react to your light_switch
input channel.
To get a reaction of the system under test, a different platform must be selected. Select Help|Examples|Getting Started|First Example to open the 01 Getting Started - 01 First Example project. Click OK and select a target directory.
This project uses the C/C++ platform created in the Platform Configuration dialog. Select Execution|Platform Configuration to open the dialog.
Select Execution|Execution Configuration to open the Execution Configuration dialog. Click Run to start the test execution again and to see that the test is executed successfully. The Build Progress dialog is displayed with which you can follow the test execution.
Click Signals in the Build Progress dialog to open the Signal Viewer. In the Signal Viewer, select light_switch
and headlight
to inspect how the signals behave over time.
In the Build Progress dialog, click Test Report to open the test report of the selected test case. Click Overview Report to create and open the overview report.